<?php /* Smarty version 2.6.18, created on 2009-05-21 09:24:11
         compiled from room/trade_edit.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'room/trade_edit.html', 53, false),array('modifier', 'urlencode', 'room/trade_edit.html', 100, false),array('modifier', 'nl2br', 'room/trade_edit.html', 139, false),array('modifier', 'strip_tags', 'room/trade_edit.html', 139, false),array('function', 'html_radios', 'room/trade_edit.html', 89, false),array('function', 'html_options', 'room/trade_edit.html', 197, false),)), $this); ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->_tpl_vars['Charset']; ?>
">
<title>商务室 - <?php echo $this->_tpl_vars['sitetitle']; ?>
</title>
<link href="<?php echo $this->_tpl_vars['CSS_PATH']; ?>
css/style.css" rel="stylesheet" type="text/css">
<link href="<?php echo $this->_tpl_vars['INC_PATH']; ?>
css/room.css" rel="stylesheet" type="text/css">
<script src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/prototype.js"></script>
<script src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/general.js"></script>
<script src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/mixselect.js"></script>
<script type="text/javascript">
function hideorshow(curDiv){
$(curDiv).style.display = ($(curDiv).style.display == 'block')? 'none':'block';
}

function CheckInput(){
	if($F('trade_topic')==""){
		alert("请输入信息标题");
		$('trade_topic').focus();
		return false;
	}
	return true;
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td height="83"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/element.top.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr align="center" valign="top">
    <td width="180" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/left_bg.gif"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "room/menu.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
    <td align="center"><table width="98%"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><img SRC="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/banr_pic.gif" WIDTH=570 HEIGHT=101 ALT=""></td>
        </tr>
      </table>
        <table width="95%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="45" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/title_bg.gif"><table height="30" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td>&nbsp;</td>
                  <td class="font14b_org"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/icon_newd.gif" width="15" height="16"> 发布<?php echo $this->_tpl_vars['TradeType']; ?>
信息 </td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td height="5" valign="top" class="bggray2"></td>
          </tr>
      </table>
		<form name="TradeFrm" enctype="multipart/form-data" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>
" onSubmit="$('Save').disabled=true;">
		<input type="hidden" name="type_id" value="<?php echo ((is_array($_tmp=@$_GET['type'])) ? $this->_run_mod_handler('default', true, $_tmp, '1') : smarty_modifier_default($_tmp, '1')); ?>
">
		<input type="hidden" name="id" value="<?php echo $_GET['id']; ?>
">
		<input type="hidden" name="oldimgname" value="<?php echo $this->_tpl_vars['row']['TradePicture']; ?>
">
		<input type="hidden" name="trade[area_id]" value="<?php echo $this->_tpl_vars['MemberInfo']['province_code_id']; ?>
" />
		<input type="hidden" name="offer[gender]" value="<?php echo $this->_tpl_vars['MemberInfo']['MemberGender']; ?>
" />
		<input type="hidden" name="offer[province_name]" value="<?php echo $this->_tpl_vars['AreaName']; ?>
" />
		<input type="hidden" name="offer[city_name]" value="<?php echo $this->_tpl_vars['AreaName']; ?>
" />
	    <table width="95%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="35"><span class="gray">&nbsp;（提示：带<font color="#FF6600"> * </font>号的为必填项）</span></td>
                </tr>
                <tr>
                  <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="100" class="bgblue"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/corner_01.gif" width="12" height="12"></td>
                        <td align="right" valign="top" class="tdright"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/corner_02.gif" width="12" height="12"></td>
                      </tr>
                  </table></td>
                </tr>
                <tr>
                  <td>
				  <table width="100%" border="0" cellspacing="0" cellpadding="5">
				  <?php if ($_GET['id']): ?>
                      <tr>
                        <td width="90" class="tdleft"><font color="#FF6600">*</font> 方 向：</td>
                        <td class="tdright"><?php if ($this->_tpl_vars['row']['TradeIfUrgent'] == '1'): ?>紧急!<?php endif; ?><?php echo $this->_tpl_vars['TradeTypes'][$this->_tpl_vars['row']['TradeTypeId']]; ?>
</td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">*</font> 主 题：</td>
                        <td class="tdright"><?php echo $this->_tpl_vars['row']['TradeTopic']; ?>
</td>
                      </tr>
				<?php else: ?>
                      <tr>
                        <td width="90" class="tdleft"><font color="#FF6600">*</font> 方 向：</td>
                        <td class="tdright"><?php echo smarty_function_html_radios(array('name' => 'type_id','options' => $this->_tpl_vars['TradeTypes'],'checked' => ((is_array($_tmp=@$this->_tpl_vars['row']['TradeTypeId'])) ? $this->_run_mod_handler('default', true, $_tmp, '1') : smarty_modifier_default($_tmp, '1')),'separator' => ' '), $this);?>
<input type="checkbox" name="trade[if_urgent]" <?php if ($this->_tpl_vars['row']['TradeIfUrgent'] == '1'): ?>checked<?php endif; ?> />
                        紧急 !</td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">*</font> 主 题：</td>
                        <td class="tdright"><input name="topic" id="trade_topic" type="text" size="25" value="<?php echo $this->_tpl_vars['row']['TradeTopic']; ?>
" />
(25字以内最佳)</td>
                      </tr>
				<?php endif; ?>
                      <tr>
                        <td class="tdleft">   关 键 词：</td>
                        <td class="tdright"><?php $_from = $this->_tpl_vars['row']['TradeKeywords']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['keyword_tag'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['keyword_tag']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['data']):
        $this->_foreach['keyword_tag']['iteration']++;
?><a href="<?php echo $this->_tpl_vars['SiteUrl']; ?>
tag.php?keyword=<?php echo ((is_array($_tmp=$this->_tpl_vars['data']['title'])) ? $this->_run_mod_handler('urlencode', true, $_tmp) : urlencode($_tmp)); ?>
" target="_blank"><?php echo $this->_tpl_vars['data']['title']; ?>
</a><a href="trade.php?do=trade&action=delkeyword&keyid=1"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/del.gif" border="0" alt="删除'<?php echo $this->_tpl_vars['data']['title']; ?>
'关键词引用" /></a><?php endforeach; endif; unset($_from); ?></td>
                      </tr>
                      <tr>
                        <td class="tdleft">   Add Tags：</td>
                        <td class="tdright"><input name="keywords" type="text" size="25" value="" />
(多个关键词请用","号或者空格隔开.)</td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600">*</font> 有效期：</td>
                        <td class="tdright"><?php echo smarty_function_html_radios(array('name' => 'expire_days','options' => $this->_tpl_vars['OfferExpires'],'checked' => ((is_array($_tmp=@$this->_tpl_vars['row']['TradeExpireDays'])) ? $this->_run_mod_handler('default', true, $_tmp, '30') : smarty_modifier_default($_tmp, '30')),'separator' => ' '), $this);?>
</td>
                      </tr>
                      <tr>
                        <td class="tdleft"> 行 业：</td>
                        <td class="tdright"><select name="aindustry" id="aindustry" USEDATA="dataSrc" SUBCLASS="1">

						</select><select name="bindustry" id="bindustry" USEDATA="dataSrc" SUBCLASS="2">

						</select>
						<br />当前行业类别  :  <?php $_from = $this->_tpl_vars['CurrentIndustry']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['cui'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cui']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['ci']):
        $this->_foreach['cui']['iteration']++;
?><?php echo $this->_tpl_vars['ci']['IndustryName']; ?>
&rarr;<?php endforeach; else: ?>空<?php endif; unset($_from); ?> (如果不选，则默认为公司行业)
						</td>
                      </tr>
                      <tr>
                        <td class="tdleft">参 数：</td>
                        <td class="tdright">想让信息被更多买家搜索到？请补充产品参数：
						<table border="0" cellspacing="0" cellpadding="4">
                            <tr>
                              <td><a name="p" /></td>
                            </tr>
							<?php $_from = $this->_tpl_vars['ObjectParams']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['op'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['op']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['tparam']):
        $this->_foreach['op']['iteration']++;
?><tr>
                              <td><?php echo $this->_tpl_vars['tparam']['title']; ?>
:
							  <?php $this->assign('param_name', ($this->_tpl_vars['tparam']['name'])); ?>
                                  <input name="param[<?php echo $this->_tpl_vars['param_name']; ?>
]" type="text" value="<?php echo $this->_tpl_vars['row']['OfferParams'][$this->_tpl_vars['param_name']]; ?>
"></td>
                            </tr>
							<?php endforeach; endif; unset($_from); ?>
                        </table>
						</td>
                      </tr>
                      <tr>
                        <td class="tdleft"><font color="#FF6600"> *</font> 详细说明：</td>
                        <td class="tdright"><textarea name="content" cols="45" rows="8" wrap="VIRTUAL"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['row']['TradeContent'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)))) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)); ?>
</textarea><br /><font color="#FF3300">（详细说明中请勿包含公司名称、地址、联系方式等）<br>
                        </font></td>
                      </tr>
					   <?php if ($_GET['id'] == ""): ?>
                      <tr>
                        <td valign="top" class="tdleft">　产品图片：</td>
                        <td class="tdright"><input name="pic" type="file" size="35" id="uploadfile" onChange="preview()" />
                            <span class="gray"><br>
                            <br>
                    （图片大小不要超过200K ,格式gif,jpg, 图片宽度最大为400*250象数效果最佳！）</span></td>
                      </tr>
					  <?php endif; ?>
                      <tr>
                        <td valign="top" class="tdleft">　当前图片: </td>
                        <td class="tdright"><img id="uploadpic" src="<?php if ($this->_tpl_vars['row']['TradeRemotePicture']): ?><?php echo $this->_tpl_vars['SiteUrl']; ?>
media/attachment/<?php echo $this->_tpl_vars['row']['TradeRemotePicture']; ?>
<?php elseif ($this->_tpl_vars['row']['TradeTopic'] != ""): ?><?php echo $this->_tpl_vars['SiteUrl']; ?>
media/attachment/<?php echo ((is_array($_tmp=@$this->_tpl_vars['row']['TradePicture'])) ? $this->_run_mod_handler('default', true, $_tmp) : smarty_modifier_default($_tmp)); ?>
<?php else: ?><?php echo $this->_tpl_vars['SiteUrl']; ?>
media/default/big.jpg<?php endif; ?>" alt="<?php echo ((is_array($_tmp=@$this->_tpl_vars['row']['TradeTopic'])) ? $this->_run_mod_handler('default', true, $_tmp, "中文名无法预览") : smarty_modifier_default($_tmp, "中文名无法预览")); ?>
" width="400" height="250" border="0" /></td>
                      </tr>
                  </table></td>
                </tr>
                <tr>
                  <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="100" class="tdleft"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/corner_03.gif" width="12" height="12"></td>
                        <td align="right" valign="top" class="tdright"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
office/corner_04.gif" width="12" height="12"></td>
                      </tr>
                  </table></td>
                </tr>
              </table>
                <br>
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><table width="100%" border="0" cellpadding="8" cellspacing="1" class="bgblue">
                        <tr>
                          <td align="center" class="zi">请务必检查联系资料!（若有误，客户无法找到您，信息也不能被审核通过！） <br>
                    需要的话，您可点此 <a href="./card.php" target="_self" class="font14b_org"><strong>修改联系资料</strong></a></td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td><table width="100%" border="0" align="center" cellpadding="8" cellspacing="1" class="bgblue">
                        <tr>
                          <td><table width="100%" border="0" cellpadding="2" cellspacing="1" class="zi">
                              <tr bgcolor="#FFFFFF">
                                <td width="24%" align="right">联系人：</td>
                                <td width="76%"><?php echo ((is_array($_tmp=@$this->_tpl_vars['CompanyInfo']['CompanyLinkMan'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['MemberInfo']['MemberName']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['MemberInfo']['MemberName'])); ?>
<font color="#999999">（全名） </font>
								</td>
                              </tr>
<?php if ($this->_tpl_vars['CompanyId'] != ""): ?>
							  <tr bgcolor="#FFFFFF">
                                <td align="right">公司名称：</td>
                                <td><?php echo $this->_tpl_vars['CompanyInfo']['CompanyName']; ?>
<font color="#999999">（公司全称）</font></td>
                              </tr>
<?php endif; ?>
                              <tr bgcolor="#FFFFFF">
                                <td align="right">首选联系电话：</td>
                                <td><select name="offer[prim_tel]">
                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['PhoneTypes'],'selected' => '1'), $this);?>

              </select>&nbsp;号码：<input type="text" name="offer[prim_telnumber]" id="prim_telnumber" value="<?php echo $this->_tpl_vars['MemberInfo']['MemberTel']; ?>
" /></td>
                              </tr>
                              <tr bgcolor="#FFFFFF">
                                <td align="right">首选即时通讯：</td>
                                <td><select name="offer[prim_im]">
                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['ImTypes'],'selected' => '1'), $this);?>

              </select>&nbsp;号码：<input type="text" name="offer[prim_imaccount]" id="prim_imaccount" value="<?php echo $this->_tpl_vars['MemberInfo']['MemberQQ']; ?>
" /></td>
                              </tr>
                              
                              <tr bgcolor="#FFFFFF">
                                <td align="right">电子邮件：</td>
                                <td><?php echo $this->_tpl_vars['MemberInfo']['ContactEmail']; ?>
</td>
                              </tr>
                          </table></td>
                        </tr>
                    </table></td>
                  </tr>
              </table></td>
          </tr>
          <tr>
            <td height="40" align="center"><br>
                <input type="hidden" name="edit_trade" id="EditTrade" value="y" />
                <input type="submit" name="save" id="Save" value="一切完成，请发布！" onClick="return CheckInput();">
            </td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
    </table>
		</form>
	</td>
  </tr>
</table>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "room/foot.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</center>
</html>
<script language="javascript">
var linkage = new Linkage("dataSrc", "<?php echo $this->_tpl_vars['JS_PATH']; ?>
media/xml/industry_option.xml");
linkage.BLANK_SELECT = "请选择";
linkage.init();
</script>